﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>加油</title>
    <link href="/CSS/Module/public.css" rel="stylesheet" type="text/css" />
    <link href="/CSS/Module/QC6.css" rel="stylesheet" type="text/css" />

    <script src="/JS/jquery.js" type="text/javascript"></script>

    <script src="/JS/jyAjax.js" type="text/javascript"></script>

    <script src="/JS/module.js" type="text/javascript"></script>

    <link href="/JS/MsgBox/moonbox.css" rel="stylesheet" type="text/css" />

    <script src="/JS/MsgBox/moonbox.js" type="text/javascript"></script>

    <script type="text/javascript" language="javascript">
        function SetRepair(checkbox){                       
             var cItems = $("#repairIdHidden").val();
             var costs=parseInt($("#costLabel").text());
             var cCost=parseInt(checkbox.value);             
             var cId=checkbox.id.replace("checkbox","");
             if(checkbox.checked){
                cItems=cItems+cId+",";
                costs=costs+cCost;
             }else{
                cItems=cItems.replace(cId+",","");
                costs=costs-cCost;
             }
			 $("#repairIdHidden").val(cItems);
			 $("#costLabel").text(costs);			 		 			 			    
		}		
   
    
    function Validate(){
        var costs=parseInt($("#costLabel").text());
        var cash=parseInt($("#cashHidden").val());
        var cItems = $("#repairIdHidden").val();
        if(cItems!=""){
            if(cash>=costs){
                fillhtml('repairForm','/Module/Venues/VenuesRepair.ashx?Type=Repair&VenuesId='+$('#venuesHidden').val()+'&Items='+$('#repairIdHidden').val()+'&'+ Math.random());
            }else{
                $.moonbox.warning("您的现金不足！");
            }
        }else{
            $.moonbox.warning("请选择维护项目！");
        }        
    }
    </script>

</head>
<body>
    $Header$ $MainMenu$
    <div class="Middle">
        $LeftMenu$
        <div class="Content">
            $ContentClub$
            <div class="MiddleTitle">
                <input type="hidden" id="venuesHidden" name="venuesHidden" value="$ModuleId$" />
                <input type="hidden" id="cashHidden" name="cashHidden" value="$Cash$" />
                <ul>
                    <li class="FontGreenB">$VenuesName$：</li>
                    <li class="FontRedB">场地维护</li>
                </ul>
            </div>
            <form id="repairForm" action="" method="post">
            </form>
            <div class="TableBottom">
            </div>
        </div>

        <script type="text/javascript" language="javascript">
            $(function(){fillhtml('repairForm','/Module/Venues/VenuesRepair.ashx?Type=Load&VenuesId='+$("#venuesHidden").val()+'&'+ Math.random())})
        </script>

    </div>
    $Footer$
</body>
</html>
